cmake_minimum_required(VERSION 3.5.1)
project(linglongtest)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

#set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
find_package(Qt5 COMPONENTS
        Core
        Gui
        Widgets
        REQUIRED)

add_executable(test main.cpp)
target_link_libraries(test
        Qt5::Core
        Qt5::Gui
        Qt5::Widgets
)
message("install: ${CMAKE_INSTALL_PREFIX}/bin")
install(TARGETS test RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
